<script>
	function checkpswd(val) {
		if($('#pswd').val()<>val) {
			$('#pswdmsg2').html('两次输入的密码不一样');
			$('#pswdmsg2').css('color','Red');
		}else {
			$('#pswdmsg2').html('两次输入一致');
			$('#pswdmsg2').css('color','Green');
		}
	}
</script>

	<div class="admin_about_full">
		<div class="adminhead"><li class="img_left"></li><li class="img_right"></li></div>
		<div class="b0"><ul><li>可在此直接添加新用户，而无需通过前台页面注册。</li></ul></div>
	</div>

	<form action="index.php" method="post">
	<input type='hidden' name='ptype' value='{ptype}' />
	<input type='hidden' name='pfile' value='{pfile}' />
	<input type='hidden' name='action' value='insert' />
	<div class="adminborder">
		<div class="adminhead">添加用户</div>
		<div class="b0">
			<div style="width: 30%;padding-right: 1%;text-align: right;">用 户 名:</div>
			<div style="width: 68%;"><input type="text" size="20" maxlength="20" name="name" value="" /></div>
		</div>
		<div class="b1">
			<div style="width: 30%;padding-right: 1%;text-align: right;">密 &nbsp; &nbsp;码:</div>
			<div style="width: 68%;"><input type="password" size="20" maxlength="75" name="pswd" id="pswd" /></div>
		</div>
		<div class="b0">
			<div style="width: 30%;padding-right: 1%;text-align: right;">重复密码:</div>
			<div style="width: 68%;"><input type="password" size="20" maxlength="75" name="pswd2" id="pswd2" onblur="checkpswd(this.value);" /><span id="pswdmsg2"></span></div>
		</div>
		<div class="b1">
			<div style="width: 30%;padding-right: 1%;text-align: right;">电子邮件:</div>
			<div style="width: 68%;"><input type="text" size="20" maxlength="75" name="email" value="" /></div>
		</div>
		<div class="bt"><input type="submit" value=" 提 交 " /> &nbsp; &nbsp;<input type="reset" value=" 重 置 " /></div>
	</div>
	</form>
